Skip to content

Minor fix series for SSP mclk - #3672

Merged
lgirdwood merged 5 commits into
thesofproject:masterfrom
keyonjie:ssp_mclk
Dec 17, 2020
Merged

lgirdwood merged 5 commits into
thesofproject:masterfrom
keyonjie:ssp_mclk

Conversation

@keyonjie

@keyonjie keyonjie commented Dec 7, 2020

Copy link
Copy Markdown
Contributor
  1. ssp: mn: return -EINVAL if bclk source not found
  2. ssp: mn: continue the mclk searching until we get a proper one

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@plbossart any comments ?

Comment thread src/drivers/intel/ssp/mn.c Resolved
@lgirdwood

Copy link
Copy Markdown
Member

@keyonjie can you check CI

@keyonjie

Copy link
Copy Markdown
Contributor Author

SOFCI TEST

@lgirdwood

Copy link
Copy Markdown
Member

@keyonjie GLK/APL looks broken with this ?

@keyonjie

Copy link
Copy Markdown
Contributor Author

Hi @lgirdwood now the slim driver test pass, the On-device Test failed should be not SSP related.

Log more useful information about bclk/mclk configuration to help track
the blck/mclk status.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Log the incorrect mdivr_val value when error happen, which could help to
identify what has happened.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Use standard errno in find_bclk_source(), return -EINVAL if no matched
bclk source found.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
The ssp.freq is arranged in ascending sequence, to get the smallest
matched clock, we should search from index 0.

We should not stop the searching if 'mclk < ssp.freq', continue the
searching until we get a larger/proper one or fail if all the items
are iterated.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
According to spec, we can configure more devidier ratios via register
MDIVR, in 1/N the N could be 2, 3, 4, 5, 6, 7, 8.

Here change to enable these possibilities.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
@lgirdwood

Copy link
Copy Markdown
Member

Jenkins CI showing an unrelated SDW PM resume error. @kv2019i @bardliao fyi.

@lgirdwood
lgirdwood merged commit 6d75984 into thesofproject:master Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants